<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="{:U(index)}" method="post">
        <input type="hidden" name="pageCurrent"     value="{$pageCurrent}"/>
        <input type="hidden" name="pageSize"        value="{$pageSize}"/>
        <input type="hidden" name="orderField"      value="{$_REQUEST['orderField']}"/>
        <input type="hidden" name="orderDirection"  value="{$_REQUEST['orderDirection']}"/>
        <div class="bjui-searchBar">
            <label>搜索：</label>
            <input type="text" value="{$searchname|default=""}" name="searchname" class="form-control" size="10" />&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
            <a href="{:U(addGroup)}" class="btn btn-green" data-toggle="dialog" data-width="500" data-height="400">添加用户组</a>
            <div class="pull-right">
                <a href="{:U(delGroup)}" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="ids" data-group="ids" class="btn btn-red">删除选中</a>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent">
    <table data-toggle="tablefixed" data-width="100%">
        <thead>
            <tr>
                <th>序号</th>
                <th data-order-field="title" data-order-direction="{$_REQUEST['orderDirection']}">用户组</th>
                <th data-order-field="description" data-order-direction="{$_REQUEST['orderDirection']}">描述</th>
                <th>授权</th>
                <th>状态</th>
                <th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
                <th width="100">操作</th>
            </tr>
        </thead>
        <tbody>
        <empty name="list">
                <td colspan="8" class="text-center">Oh! 暂时还没有内容!</td>
                <else />
            <volist name="list" id="vo">
            <tr>
                <td>{$i}</td>
                <td>{$vo.title}</td>
                <td>{$vo.description}</td>
                <td>
                <a class="btn btn-green btn-sm" href="{:U('access',array('id'=>$vo['id']))}" data-id="access" data-toggle="navtab"   title="访问授权" ><span>访问授权</span></a>
                <a class="btn btn-green btn-sm" href="{:U('user',array('group_id'=>$vo['id']))}" data-id="user" data-toggle="dialog" data-width="800" data-title="{$vo.title}--成员管理" ><span>成员管理</span></a>
                </td>
                 <td><if condition="$vo.status eq 1"> 启用<else /> 禁用</if></td>
                <td>
                    <input type="checkbox" name="ids" data-toggle="icheck" value="{$vo.id}"></td>
                    <td>
                        <a href="{:U('editGroup',array('id'=>$vo['id']))}" class="btn btn-green" data-toggle="dialog">编辑</a>
                        <a href="{:U('delGroup',array('ids'=>$vo['id']))}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删
                        </a>
                    </td>
            </tr>
            </volist>
        </empty>
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="{$pageSize}">{$pageSize}</option>
                <option value="10">10</option>
                <option value="20">20</option>
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="100">100</option>
            </select>
        </div>
        <span>共{$total}条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="{$total}" data-page-size="{$pageSize}" data-page-current="{$pageCurrent}"></div>
</div>